home *** CD-ROM | disk | FTP | other *** search
/ Apple Service Source 1997 December / Service Source v2.5 Companion 1.iso / Macintosh / Utilities / Macintosh Tutorial / Tutorial Items / Mouse Skills / Mouse Skills.rsrc / VWFI_1024 < prev    next >
Unknown  |  1994-05-18  |  6.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 10 01 7e 1b c4 | 00 00 00 18 00 00 00 20 |.....~..|....... |
|00000010| 00 07 00 00 00 00 00 00 | 19 ec 00 00 1a 07 00 00 |........|........|
|00000020| 1a 2a 00 00 1a 2a 00 00 | 1a 2c 00 00 1a 2c 00 00 |.*...*..|.,...,..|
|00000030| 1a 2c 2d 2d 20 4c 65 61 | 72 6e 69 6e 67 20 4d 61 |.,-- Lea|rning Ma|
|00000040| 63 69 6e 74 6f 73 68 2c | 20 50 61 72 74 20 31 0d |cintosh,| Part 1.|
|00000050| 2d 2d 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |-- Copyr|ight 199|
|00000060| 30 20 2d 20 31 39 39 34 | 20 41 70 70 6c 65 20 43 |0 - 1994| Apple C|
|00000070| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 04 04 0d |omputer,| Inc....|
|00000080| 2d 2d 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |-- All r|ights re|
|00000090| 73 65 72 76 65 64 2e 0d | 2d 2d 20 62 79 20 49 6e |served..|-- by In|
|000000a0| 73 74 72 75 63 74 69 6f | 6e 61 6c 20 50 72 6f 64 |structio|nal Prod|
|000000b0| 75 63 74 73 20 40 20 41 | 70 70 6c 65 20 43 6f 6d |ucts @ A|pple Com|
|000000c0| 70 75 74 65 72 2c 20 49 | 6e 63 2e 0d 0d 2d 2d 20 |puter, I|nc...-- |
|000000d0| a5 a5 a5 20 47 45 4e 45 | 52 41 4c 20 48 41 4e 44 |... GENE|RAL HAND|
|000000e0| 4c 45 52 53 0d 2d 2d 20 | a5 a5 20 4e 41 56 49 47 |LERS.-- |.. NAVIG|
|000000f0| 41 54 49 4f 4e 20 42 55 | 54 54 4f 4e 53 0d 0d 6f |ATION BU|TTONS..o|
|00000100| 6e 20 6d 6f 75 73 65 44 | 6f 77 6e 41 63 74 69 6f |n mouseD|ownActio|
|00000110| 6e 20 77 68 61 74 54 6f | 44 6f 0d 20 20 70 75 74 |n whatTo|Do. put|
|00000120| 20 74 68 65 20 63 6c 69 | 63 6b 4f 6e 20 69 6e 74 | the cli|ckOn int|
|00000130| 6f 20 73 70 72 69 74 65 | 4e 75 6d 0d 20 20 69 66 |o sprite|Num. if|
|00000140| 20 73 70 72 69 74 65 4e | 75 6d 20 3d 20 32 32 20 | spriteN|um = 22 |
|00000150| 74 68 65 6e 20 72 69 67 | 68 74 42 74 6e 44 6f 77 |then rig|htBtnDow|
|00000160| 6e 20 77 68 61 74 54 6f | 44 6f 0d 20 20 65 6c 73 |n whatTo|Do. els|
|00000170| 65 20 69 66 20 73 70 72 | 69 74 65 4e 75 6d 20 3d |e if spr|iteNum =|
|00000180| 20 31 39 20 74 68 65 6e | 20 6c 65 66 74 42 74 6e | 19 then| leftBtn|
|00000190| 44 6f 77 6e 20 77 68 61 | 74 54 6f 44 6f 0d 20 20 |Down wha|tToDo. |
|000001a0| 65 6c 73 65 20 69 66 20 | 73 70 72 69 74 65 4e 75 |else if |spriteNu|
|000001b0| 6d 20 3d 20 32 31 20 74 | 68 65 6e 20 67 75 69 64 |m = 21 t|hen guid|
|000001c0| 65 42 74 6e 44 6f 77 6e | 20 77 68 61 74 54 6f 44 |eBtnDown| whatToD|
|000001d0| 6f 0d 20 20 65 6c 73 65 | 20 64 6f 20 77 68 61 74 |o. else| do what|
|000001e0| 54 6f 44 6f 0d 65 6e 64 | 20 6d 6f 75 73 65 44 6f |ToDo.end| mouseDo|
|000001f0| 77 6e 41 63 74 69 6f 6e | 0d 0d 6f 6e 20 69 6e 74 |wnAction|..on int|
|00000200| 65 72 41 63 74 69 6f 6e | 20 64 6f 77 6e 53 70 72 |erAction| downSpr|
|00000210| 69 74 65 2c 77 68 61 74 | 54 6f 44 6f 0d 20 20 69 |ite,what|ToDo. i|
|00000220| 66 20 74 68 65 20 6d 6f | 75 73 65 55 70 20 74 68 |f the mo|useUp th|
|00000230| 65 6e 20 65 78 69 74 0d | 20 20 70 75 74 20 74 68 |en exit.| put th|
|00000240| 65 20 63 6c 69 63 6b 4f | 6e 20 69 6e 74 6f 20 73 |e clickO|n into s|
|00000250| 70 72 69 74 65 4e 75 6d | 0d 20 20 62 75 74 74 6f |priteNum|. butto|
|00000260| 6e 44 6f 77 6e 28 73 70 | 72 69 74 65 4e 75 6d 2c |nDown(sp|riteNum,|
|00000270| 64 6f 77 6e 53 70 72 69 | 74 65 2c 64 6f 77 6e 53 |downSpri|te,downS|
|00000280| 70 72 69 74 65 2c 54 52 | 55 45 29 0d 20 20 64 6f |prite,TR|UE). do|
|00000290| 20 77 68 61 74 54 6f 44 | 6f 0d 65 6e 64 20 69 6e | whatToD|o.end in|
|000002a0| 74 65 72 41 63 74 69 6f | 6e 0d 0d 6f 6e 20 72 69 |terActio|n..on ri|
|000002b0| 67 68 74 42 74 6e 44 6f | 77 6e 20 77 68 61 74 54 |ghtBtnDo|wn whatT|
|000002c0| 6f 44 6f 0d 20 20 2d 2d | 20 32 32 20 3d 20 74 68 |oDo. --| 22 = th|
|000002d0| 65 20 73 70 72 69 74 65 | 20 6f 66 20 74 68 65 20 |e sprite| of the |
|000002e0| 52 69 67 68 74 20 41 72 | 72 6f 77 20 62 75 74 74 |Right Ar|row butt|
|000002f0| 6f 6e 0d 20 20 2d 2d 20 | 52 69 67 68 74 20 41 72 |on. -- |Right Ar|
|00000300| 72 6f 77 2e 55 70 20 3d | 20 67 34 36 20 0d 20 20 |row.Up =| g46 . |
|00000310| 2d 2d 20 52 69 67 68 74 | 20 41 72 72 6f 77 2e 44 |-- Right| Arrow.D|
|00000320| 6f 77 6e 20 3d 20 67 34 | 32 20 0d 20 20 69 66 20 |own = g4|2 . if |
|00000330| 74 68 65 20 6d 6f 75 73 | 65 55 70 20 74 68 65 6e |the mous|eUp then|
|00000340| 20 65 78 69 74 20 2d 2d | 20 62 75 67 20 66 69 78 | exit --| bug fix|
|00000350| 3a 20 69 66 20 75 73 65 | 72 20 6d 6f 75 73 65 73 |: if use|r mouses|
|00000360| 20 69 6e 20 77 69 74 68 | 20 62 75 74 74 6f 6e 20 | in with| button |
|00000370| 64 6f 77 6e 0d 20 20 69 | 66 20 62 75 74 74 6f 6e |down. i|f button|
|00000380| 44 6f 77 6e 28 32 32 2c | 67 34 36 2c 67 34 32 2c |Down(22,|g46,g42,|
|00000390| 54 52 55 45 29 20 74 68 | 65 6e 0d 20 20 20 20 64 |TRUE) th|en. d|
|000003a0| 6f 20 77 68 61 74 54 6f | 44 6f 0d 20 20 20 20 77 |o whatTo|Do. w|
|000003b0| 68 65 6e 20 74 69 6d 65 | 4f 75 74 20 74 68 65 6e |hen time|Out then|
|000003c0| 20 6e 6f 74 68 69 6e 67 | 20 2d 2d 20 72 65 73 65 | nothing| -- rese|
|000003d0| 74 20 74 68 65 20 74 69 | 6d 65 4f 75 74 0d 20 20 |t the ti|meOut. |
|000003e0| 65 6c 73 65 20 67 6f 20 | 74 6f 20 74 68 65 20 66 |else go |to the f|
|000003f0| 72 61 6d 65 0d 65 6e 64 | 20 72 69 67 68 74 42 74 |rame.end| rightBt|
|00000400| 6e 44 6f 77 6e 0d 0d 6f | 6e 20 6c 65 66 74 42 74 |nDown..o|n leftBt|
|00000410| 6e 44 6f 77 6e 20 77 68 | 61 74 54 6f 44 6f 0d 20 |nDown wh|atToDo. |
|00000420| 20 2d 2d 20 31 39 20 3d | 20 74 68 65 20 73 70 72 | -- 19 =| the spr|
|00000430| 69 74 65 20 6f 66 20 74 | 68 65 20 4c 65 66 74 20 |ite of t|he Left |
|00000440| 41 72 72 6f 77 20 62 75 | 74 74 6f 6e 0d 20 20 2d |Arrow bu|tton. -|
|00000450| 2d 20 4c 65 66 74 20 41 | 72 72 6f 77 2e 55 70 20 |- Left A|rrow.Up |
|00000460| 3d 20 67 34 35 0d 20 20 | 2d 2d 20 4c 65 66 74 20 |= g45. |-- Left |
|00000470| 41 72 72 6f 77 2e 44 6f | 77 6e 20 3d 20 67 34 31 |Arrow.Do|wn = g41|
|00000480| 20 0d 20 20 69 66 20 74 | 68 65 20 6d 6f 75 73 65 | . if t|he mouse|
|00000490| 55 70 20 74 68 65 6e 20 | 65 78 69 74 20 2d 2d 20 |Up then |exit -- |
|000004a0| 62 75 67 20 66 69 78 3a | 20 69 66 20 75 73 65 72 |bug fix:| if user|
|000004b0| 20 6d 6f 75 73 65 73 20 | 69 6e 20 77 69 74 68 20 | mouses |in with |
|000004c0| 62 75 74 74 6f 6e 20 64 | 6f 77 6e 0d 20 20 69 66 |button d|own. if|
|000004d0| 20 62 75 74 74 6f 6e 44 | 6f 77 6e 28 31 39 2c 67 | buttonD|own(19,g|
|000004e0| 34 35 2c 67 34 31 2c 54 | 52 55 45 29 20 74 68 65 |45,g41,T|RUE) the|
|000004f0| 6e 20 0d 20 20 20 20 64 | 6f 20 77 68 61 74 54 6f |n . d|o whatTo|
|00000500| 44 6f 0d 20 20 65 6c 73 | 65 20 67 6f 20 74 6f 20 |Do. els|e go to |
|00000510| 74 68 65 20 66 72 61 6d | 65 0d 65 6e 64 20 6c 65 |the fram|e.end le|
|00000520| 66 74 42 74 6e 44 6f 77 | 6e 0d 0d 6f 6e 20 67 75 |ftBtnDow|n..on gu|
|00000530| 69 64 65 42 74 6e 44 6f | 77 6e 20 77 68 61 74 54 |ideBtnDo|wn whatT|
|00000540| 6f 44 6f 0d 20 20 2d 2d | 20 32 31 20 3d 20 74 68 |oDo. --| 21 = th|
|00000550| 65 20 73 70 72 69 74 65 | 20 6f 66 20 74 68 65 20 |e sprite| of the |
|00000560| 4c 65 66 74 20 41 72 72 | 6f 77 20 62 75 74 74 6f |Left Arr|ow butto|
|00000570| 6e 0d 20 20 2d 2d 20 47 | 75 69 64 65 20 42 75 74 |n. -- G|uide But|
|00000580| 74 6f 6e 2e 55 70 20 3d | 20 61 32 33 0d 20 20 2d |ton.Up =| a23. -|
|00000590| 2d 20 4c 65 66 74 20 41 | 72 72 6f 77 2e 44 6f 77 |- Left A|rrow.Dow|
|000005a0| 6e 20 3d 20 61 32 34 20 | 0d 20 20 69 66 20 74 68 |n = a24 |. if th|
|000005b0| 65 20 6d 6f 75 73 65 55 | 70 20 74 68 65 6e 20 65 |e mouseU|p then e|
|000005c0| 78 69 74 20 2d 2d 20 62 | 75 67 20 66 69 78 3a 20 |xit -- b|ug fix: |
|000005d0| 69 66 20 75 73 65 72 20 | 6d 6f 75 73 65 73 20 69 |if user |mouses i|
|000005e0| 6e 20 77 69 74 68 20 62 | 75 74 74 6f 6e 20 64 6f |n with b|utton do|
|000005f0| 77 6e 0d 20 20 69 66 20 | 62 75 74 74 6f 6e 44 6f |wn. if |buttonDo|
|00000600| 77 6e 28 32 31 2c 61 32 | 33 2c 61 32 34 2c 46 41 |wn(21,a2|3,a24,FA|
|00000610| 4c 53 45 29 20 74 68 65 | 6e 0d 20 20 20 20 64 6f |LSE) the|n. do|
|00000620| 20 77 68 61 74 54 6f 44 | 6f 0d 20 20 65 6c 73 65 | whatToD|o. else|
|00000630| 20 67 6f 20 74 6f 20 74 | 68 65 20 66 72 61 6d 65 | go to t|he frame|
|00000640| 0d 65 6e 64 20 67 75 69 | 64 65 42 74 6e 44 6f 77 |.end gui|deBtnDow|
|00000650| 6e 0d 0d 6f 6e 20 62 75 | 74 74 6f 6e 44 6f 77 6e |n..on bu|ttonDown|
|00000660| 20 73 70 72 69 74 65 4e | 75 6d 2c 75 70 43 61 73 | spriteN|um,upCas|
|00000670| 74 2c 64 6f 77 6e 43 61 | 73 74 2c 66 69 6e 69 73 |t,downCa|st,finis|
|00000680| 68 55 70 0d 20 20 70 75 | 70 70 65 74 53 70 72 69 |hUp. pu|ppetSpri|
|00000690| 74 65 20 73 70 72 69 74 | 65 4e 75 6d 2c 54 52 55 |te sprit|eNum,TRU|
|000006a0| 45 0d 20 20 73 65 74 20 | 74 68 65 20 63 61 73 74 |E. set |the cast|
|000006b0| 4e 75 6d 20 6f 66 20 73 | 70 72 69 74 65 20 73 70 |Num of s|prite sp|
|000006c0| 72 69 74 65 4e 75 6d 20 | 74 6f 20 64 6f 77 6e 43 |riteNum |to downC|
|000006d0| 61 73 74 0d 20 20 75 70 | 64 61 74 65 53 74 61 67 |ast. up|dateStag|
|000006e0| 65 0d 20 20 72 65 70 65 | 61 74 20 77 68 69 6c 65 |e. repe|at while|
|000006f0| 20 74 68 65 20 6d 6f 75 | 73 65 44 6f 77 6e 0d 20 | the mou|seDown. |
|00000700| 20 20 20 69 66 20 72 6f | 6c 6c 4f 76 65 72 28 73 | if ro|llOver(s|
|00000710| 70 72 69 74 65 4e 75 6d | 29 20 74 68 65 6e 20 0d |priteNum|) then .|
|00000720| 20 20 20 20 20 20 73 65 | 74 20 74 68 65 20 63 61 | se|t the ca|
|00000730| 73 74 4e 75 6d 20 6f 66 | 20 73 70 72 69 74 65 20 |stNum of| sprite |
|00000740| 73 70 72 69 74 65 4e 75 | 6d 20 74 6f 20 64 6f 77 |spriteNu|m to dow|
|00000750| 6e 43 61 73 74 0d 20 20 | 20 20 65 6c 73 65 20 73 |nCast. | else s|
|00000760| 65 74 20 74 68 65 20 63 | 61 73 74 4e 75 6d 20 6f |et the c|astNum o|
|00000770| 66 20 73 70 72 69 74 65 | 20 73 70 72 69 74 65 4e |f sprite| spriteN|
|00000780| 75 6d 20 74 6f 20 75 70 | 43 61 73 74 0d 20 20 20 |um to up|Cast. |
|00000790| 20 75 70 64 61 74 65 53 | 74 61 67 65 0d 20 20 65 | updateS|tage. e|
|000007a0| 6e 64 20 72 65 70 65 61 | 74 20 0d 20 20 70 75 74 |nd repea|t . put|
|000007b0| 20 28 74 68 65 20 63 61 | 73 74 4e 75 6d 20 6f 66 | (the ca|stNum of|
|000007c0| 20 73 70 72 69 74 65 20 | 73 70 72 69 74 65 4e 75 | sprite |spriteNu|
|000007d0| 6d 20 3d 20 64 6f 77 6e | 43 61 73 74 29 20 69 6e |m = down|Cast) in|
|000007e0| 74 6f 20 54 52 55 45 6f | 72 46 41 4c 53 45 20 0d |to TRUEo|rFALSE .|
|000007f0| 20 20 69 66 20 66 69 6e | 69 73 68 55 70 20 74 68 | if fin|ishUp th|
|00000800| 65 6e 0d 20 20 20 20 73 | 65 74 20 74 68 65 20 63 |en. s|et the c|
|00000810| 61 73 74 4e 75 6d 20 6f | 66 20 73 70 72 69 74 65 |astNum o|f sprite|
|00000820| 20 73 70 72 69 74 65 4e | 75 6d 20 74 6f 20 75 70 | spriteN|um to up|
|00000830| 43 61 73 74 0d 20 20 20 | 20 75 70 64 61 74 65 53 |Cast. | updateS|
|00000840| 74 61 67 65 0d 20 20 65 | 6e 64 20 69 66 0d 20 20 |tage. e|nd if. |
|00000850| 70 75 70 70 65 74 53 70 | 72 69 74 65 20 73 70 72 |puppetSp|rite spr|
|00000860| 69 74 65 4e 75 6d 2c 20 | 46 41 4c 53 45 0d 20 20 |iteNum, |FALSE. |
|00000870| 72 65 74 75 72 6e 20 54 | 52 55 45 6f 72 46 41 4c |return T|RUEorFAL|
|00000880| 53 45 0d 65 6e 64 20 62 | 75 74 74 6f 6e 44 6f 77 |SE.end b|uttonDow|
|00000890| 6e 0d 0d 2d 2d 20 a5 a5 | 20 52 45 53 45 54 20 53 |n..-- ..| RESET S|
|000008a0| 50 52 49 54 45 53 0d 0d | 6f 6e 20 70 75 70 70 65 |PRITES..|on puppe|
|000008b0| 74 73 4f 66 66 0d 20 20 | 72 65 70 65 61 74 20 77 |tsOff. |repeat w|
|000008c0| 69 74 68 20 73 70 72 69 | 74 65 4e 75 6d 20 3d 20 |ith spri|teNum = |
|000008d0| 31 20 74 6f 20 32 34 0d | 20 20 20 20 70 75 70 70 |1 to 24.| pupp|
|000008e0| 65 74 53 70 72 69 74 65 | 20 73 70 72 69 74 65 4e |etSprite| spriteN|
|000008f0| 75 6d 2c 20 46 41 4c 53 | 45 0d 20 20 65 6e 64 20 |um, FALS|E. end |
|00000900| 72 65 70 65 61 74 0d 65 | 6e 64 20 70 75 70 70 65 |repeat.e|nd puppe|
|00000910| 74 73 4f 66 66 0d 0d 6f | 6e 20 69 6d 6d 65 64 69 |tsOff..o|n immedi|
|00000920| 61 74 65 73 4f 66 66 0d | 20 20 2d 2d 20 73 70 72 |atesOff.| -- spr|
|00000930| 69 74 65 73 20 31 39 20 | 74 6f 20 32 34 20 61 72 |ites 19 |to 24 ar|
|00000940| 65 20 74 68 65 20 6e 61 | 76 69 67 61 74 69 6f 6e |e the na|vigation|
|00000950| 20 63 6f 6e 74 72 6f 6c | 73 0d 20 20 72 65 70 65 | control|s. repe|
|00000960| 61 74 20 77 69 74 68 20 | 73 70 72 69 74 65 4e 75 |at with |spriteNu|
|00000970| 6d 20 3d 20 31 20 74 6f | 20 31 38 0d 20 20 20 20 |m = 1 to| 18. |
|00000980| 73 65 74 20 74 68 65 20 | 69 6d 6d 65 64 69 61 74 |set the |immediat|
|00000990| 65 20 6f 66 20 73 70 72 | 69 74 65 20 73 70 72 69 |e of spr|ite spri|
|000009a0| 74 65 4e 75 6d 20 74 6f | 20 46 41 4c 53 45 0d 20 |teNum to| FALSE. |
|000009b0| 20 65 6e 64 20 72 65 70 | 65 61 74 0d 65 6e 64 20 | end rep|eat.end |
|000009c0| 69 6d 6d 65 64 69 61 74 | 65 73 4f 66 66 0d 0d 2d |immediat|esOff..-|
|000009d0| 2d 20 a5 a5 20 52 45 53 | 45 54 20 54 49 4d 45 52 |- .. RES|ET TIMER|
|000009e0| 0d 0d 6f 6e 20 52 65 73 | 65 74 41 6e 64 44 6f 20 |..on Res|etAndDo |
|000009f0| 57 68 61 74 54 6f 44 6f | 20 2d 2d 20 54 75 72 6e |WhatToDo| -- Turn|
|00000a00| 73 20 74 69 6d 65 72 20 | 6f 66 66 20 64 6f 65 73 |s timer |off does|
|00000a10| 20 57 68 61 74 54 6f 44 | 6f 0d 20 20 77 68 65 6e | WhatToD|o. when|
|00000a20| 20 74 69 6d 65 4f 75 74 | 20 74 68 65 6e 20 6e 6f | timeOut| then no|
|00000a30| 74 68 69 6e 67 20 20 0d | 20 20 64 6f 20 57 68 61 |thing .| do Wha|
|00000a40| 74 54 6f 44 6f 0d 65 6e | 64 20 52 65 73 65 74 41 |tToDo.en|d ResetA|
|00000a50| 6e 64 57 68 61 74 0d 0d | 2d 2d 20 a5 a5 20 4d 45 |ndWhat..|-- .. ME|
|00000a60| 4e 55 20 48 41 4e 44 4c | 45 52 53 0d 0d 6f 6e 20 |NU HANDL|ERS..on |
|00000a70| 4e 65 77 4d 65 6e 75 0d | 20 20 67 6c 6f 62 61 6c |NewMenu.| global|
|00000a80| 20 4d 65 6e 75 2c 20 6d | 54 6f 70 2c 20 6d 4c 65 | Menu, m|Top, mLe|
|00000a90| 66 74 2c 20 6d 42 6f 74 | 74 6f 6d 2c 20 6d 52 69 |ft, mBot|tom, mRi|
|00000aa0| 67 68 74 2c 20 6d 53 70 | 61 63 69 6e 67 0d 20 20 |ght, mSp|acing. |
|00000ab0| 70 75 74 20 31 39 20 69 | 6e 74 6f 20 6d 54 6f 70 |put 19 i|nto mTop|
|00000ac0| 20 20 20 2d 2d 6d 65 6e | 75 20 72 65 63 74 0d 20 | --men|u rect. |
|00000ad0| 20 70 75 74 20 32 34 30 | 20 69 6e 74 6f 20 6d 4c | put 240| into mL|
|00000ae0| 65 66 74 0d 20 20 70 75 | 74 20 34 30 20 69 6e 74 |eft. pu|t 40 int|
|00000af0| 6f 20 6d 42 6f 74 74 6f | 6d 0d 20 20 70 75 74 20 |o mBotto|m. put |
|00000b00| 36 32 30 20 69 6e 74 6f | 20 6d 52 69 67 68 74 0d |620 into| mRight.|
|00000b10| 20 20 70 75 74 20 34 20 | 69 6e 74 6f 20 6d 53 70 | put 4 |into mSp|
|00000b20| 61 63 69 6e 67 20 2d 2d | c6 20 4c 6f 63 61 6c 69 |acing --|. Locali|
|00000b30| 7a 65 0d 20 20 69 66 20 | 6f 62 6a 65 63 74 70 28 |ze. if |objectp(|
|00000b40| 4d 65 6e 75 29 20 74 68 | 65 6e 20 4d 65 6e 75 28 |Menu) th|en Menu(|
|00000b50| 6d 44 69 73 70 6f 73 65 | 29 0d 20 20 6f 70 65 6e |mDispose|). open|
|00000b60| 58 4c 69 62 20 22 53 54 | 4d 65 6e 75 42 61 72 22 |XLib "ST|MenuBar"|
|00000b70| 0d 20 20 73 65 74 20 4d | 65 6e 75 20 3d 20 53 54 |. set M|enu = ST|
|00000b80| 4d 65 6e 75 42 61 72 28 | 6d 4e 65 77 29 0d 20 20 |MenuBar(|mNew). |
|00000b90| 75 70 64 61 74 65 53 74 | 61 67 65 0d 65 6e 64 20 |updateSt|age.end |
|00000ba0| 4e 65 77 4d 65 6e 75 0d | 0d 6f 6e 20 48 65 6c 70 |NewMenu.|.on Help|
|00000bb0| 4d 65 6e 75 0d 20 20 67 | 6c 6f 62 61 6c 20 4d 65 |Menu. g|lobal Me|
|00000bc0| 6e 75 2c 20 6d 54 6f 70 | 2c 20 6d 4c 65 66 74 2c |nu, mTop|, mLeft,|
|00000bd0| 20 6d 42 6f 74 74 6f 6d | 2c 20 6d 52 69 67 68 74 | mBottom|, mRight|
|00000be0| 2c 20 6d 53 70 61 63 69 | 6e 67 0d 20 20 70 75 74 |, mSpaci|ng. put|
|00000bf0| 20 31 39 20 69 6e 74 6f | 20 6d 54 6f 70 20 20 20 | 19 into| mTop |
|00000c00| 2d 2d 20 4d 61 63 42 61 | 73 69 63 73 20 6d 65 6e |-- MacBa|sics men|
|00000c10| 75 20 72 65 63 74 0d 20 | 20 70 75 74 20 35 35 33 |u rect. | put 553|
|00000c20| 20 69 6e 74 6f 20 6d 4c | 65 66 74 0d 20 20 70 75 | into mL|eft. pu|
|00000c30| 74 20 34 30 20 69 6e 74 | 6f 20 6d 42 6f 74 74 6f |t 40 int|o mBotto|
|00000c40| 6d 0d 20 20 70 75 74 20 | 36 32 30 20 69 6e 74 6f |m. put |620 into|
|00000c50| 20 6d 52 69 67 68 74 0d | 20 20 70 75 74 20 34 20 | mRight.| put 4 |
|00000c60| 69 6e 74 6f 20 6d 53 70 | 61 63 69 6e 67 20 2d 2d |into mSp|acing --|
|00000c70| c6 20 4c 6f 63 61 6c 69 | 7a 65 0d 20 20 69 66 20 |. Locali|ze. if |
|00000c80| 6f 62 6a 65 63 74 70 28 | 4d 65 6e 75 29 20 74 68 |objectp(|Menu) th|
|00000c90| 65 6e 20 4d 65 6e 75 28 | 6d 44 69 73 70 6f 73 65 |en Menu(|mDispose|
|00000ca0| 29 0d 20 20 6f 70 65 6e | 58 4c 69 62 20 22 53 54 |). open|XLib "ST|
|00000cb0| 4d 65 6e 75 42 61 72 22 | 0d 20 20 73 65 74 20 4d |MenuBar"|. set M|
|00000cc0| 65 6e 75 20 3d 20 53 54 | 4d 65 6e 75 42 61 72 28 |enu = ST|MenuBar(|
|00000cd0| 6d 4e 65 77 29 0d 65 6e | 64 20 48 65 6c 70 4d 65 |mNew).en|d HelpMe|
|00000ce0| 6e 75 0d 0d 6f 6e 20 4f | 70 65 6e 41 70 70 4d 65 |nu..on O|penAppMe|
|00000cf0| 6e 75 20 6d 43 61 73 74 | 0d 20 20 48 65 6c 70 4d |nu mCast|. HelpM|
|00000d00| 65 6e 75 0d 20 20 4f 70 | 65 6e 4d 65 6e 75 20 6d |enu. Op|enMenu m|
|00000d10| 43 61 73 74 0d 65 6e 64 | 20 4f 70 65 6e 41 70 70 |Cast.end| OpenApp|
|00000d20| 4d 65 6e 75 0d 0d 6f 6e | 20 4f 70 65 6e 4d 65 6e |Menu..on| OpenMen|
|00000d30| 75 20 6d 43 61 73 74 0d | 20 20 67 6c 6f 62 61 6c |u mCast.| global|
|00000d40| 20 4d 65 6e 75 2c 20 6d | 54 6f 70 2c 20 6d 4c 65 | Menu, m|Top, mLe|
|00000d50| 66 74 2c 20 6d 42 6f 74 | 74 6f 6d 2c 20 6d 52 69 |ft, mBot|tom, mRi|
|00000d60| 67 68 74 2c 20 6d 43 6f | 6e 74 65 6e 74 73 2c 20 |ght, mCo|ntents, |
|00000d70| 6d 49 6e 64 65 78 2c 20 | 6d 53 70 61 63 69 6e 67 |mIndex, |mSpacing|
|00000d80| 0d 20 20 2d 2d 0d 20 20 | 70 75 74 20 74 68 65 20 |. --. |put the |
|00000d90| 74 65 78 74 20 6f 66 20 | 63 61 73 74 20 6d 43 61 |text of |cast mCa|
|00000da0| 73 74 20 69 6e 74 6f 20 | 6d 65 6e 75 41 72 72 61 |st into |menuArra|
|00000db0| 79 0d 20 20 2d 2d 20 2a | 2a 20 28 6c 69 6e 65 20 |y. -- *|* (line |
|00000dc0| 31 20 6f 66 20 6d 65 6e | 75 41 72 72 61 79 20 69 |1 of men|uArray i|
|00000dd0| 73 20 61 20 63 6f 6d 6d | 65 6e 74 29 2e 20 2a 2a |s a comm|ent). **|
|00000de0| 20 0d 20 20 70 75 74 20 | 6c 69 6e 65 20 32 20 6f | . put |line 2 o|
|00000df0| 66 20 6d 65 6e 75 41 72 | 72 61 79 20 69 6e 74 6f |f menuAr|ray into|
|00000e00| 20 6d 43 6f 6e 74 65 6e | 74 73 0d 20 20 70 75 74 | mConten|ts. put|
|00000e10| 20 6c 69 6e 65 20 33 20 | 6f 66 20 6d 65 6e 75 41 | line 3 |of menuA|
|00000e20| 72 72 61 79 20 69 6e 74 | 6f 20 6d 49 6e 64 65 78 |rray int|o mIndex|
|00000e30| 0d 20 20 4d 65 6e 75 28 | 6d 4f 70 65 6e 4d 65 6e |. Menu(|mOpenMen|
|00000e40| 75 42 61 72 2c 20 6d 54 | 6f 70 2c 20 6d 4c 65 66 |uBar, mT|op, mLef|
|00000e50| 74 2c 20 6d 42 6f 74 74 | 6f 6d 2c 20 6d 52 69 67 |t, mBott|om, mRig|
|00000e60| 68 74 2c 20 6d 53 70 61 | 63 69 6e 67 2c 20 6d 43 |ht, mSpa|cing, mC|
|00000e70| 6f 6e 74 65 6e 74 73 29 | 0d 65 6e 64 20 4f 70 65 |ontents)|.end Ope|
|00000e80| 6e 4d 65 6e 75 0d 0d 6f | 6e 20 52 75 6e 4d 65 6e |nMenu..o|n RunMen|
|00000e90| 75 0d 20 20 67 6c 6f 62 | 61 6c 20 4d 65 6e 75 2c |u. glob|al Menu,|
|00000ea0| 6d 49 6e 64 65 78 0d 20 | 20 4d 65 6e 75 28 6d 50 |mIndex. | Menu(mP|
|00000eb0| 72 6f 63 65 73 73 45 76 | 65 6e 74 73 29 0d 20 20 |rocessEv|ents). |
|00000ec0| 70 75 74 20 74 68 65 20 | 72 65 73 75 6c 74 20 69 |put the |result i|
|00000ed0| 6e 74 6f 20 6d 45 76 65 | 6e 74 0d 20 20 69 66 20 |nto mEve|nt. if |
|00000ee0| 73 74 72 69 6e 67 70 28 | 6d 45 76 65 6e 74 29 20 |stringp(|mEvent) |
|00000ef0| 74 68 65 6e 0d 20 20 20 | 20 2d 2d 20 2a 2a 20 28 |then. | -- ** (|
|00000f00| 45 61 63 68 20 73 65 74 | 20 6f 66 20 74 68 72 65 |Each set| of thre|
|00000f10| 65 20 69 74 65 6d 73 20 | 69 6e 20 6d 49 6e 64 65 |e items |in mInde|
|00000f20| 78 20 73 74 61 6e 64 73 | 20 66 6f 72 20 61 20 77 |x stands| for a w|
|00000f30| 6f 72 6b 69 6e 67 20 6d | 65 6e 75 20 63 68 6f 69 |orking m|enu choi|
|00000f40| 63 65 29 2e 20 2a 2a 0d | 20 20 20 20 70 75 74 20 |ce). **.| put |
|00000f50| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |the numb|er of it|
|00000f60| 65 6d 73 20 69 6e 20 6d | 49 6e 64 65 78 2f 33 20 |ems in m|Index/3 |
|00000f70| 69 6e 74 6f 20 6e 62 72 | 4f 66 54 72 69 70 6c 65 |into nbr|OfTriple|
|00000f80| 74 73 0d 20 20 20 20 72 | 65 70 65 61 74 20 77 69 |ts. r|epeat wi|
|00000f90| 74 68 20 69 3d 31 20 74 | 6f 20 6e 62 72 4f 66 54 |th i=1 t|o nbrOfT|
|00000fa0| 72 69 70 6c 65 74 73 0d | 20 20 20 20 20 20 70 75 |riplets.| pu|
|00000fb0| 74 20 69 74 65 6d 20 28 | 69 2a 33 29 20 2d 20 32 |t item (|i*3) - 2|
|00000fc0| 20 74 6f 20 28 69 2a 33 | 29 20 2d 20 31 20 6f 66 | to (i*3|) - 1 of|
|00000fd0| 20 6d 49 6e 64 65 78 20 | 69 6e 74 6f 20 6d 49 74 | mIndex |into mIt|
|00000fe0| 65 6d 49 44 0d 20 20 20 | 20 20 20 69 66 20 6d 45 |emID. | if mE|
|00000ff0| 76 65 6e 74 20 3d 20 6d | 49 74 65 6d 49 44 20 74 |vent = m|ItemID t|
|00001000| 68 65 6e 0d 20 20 20 20 | 20 20 20 20 43 6c 6f 73 |hen. | Clos|
|00001010| 65 4d 65 6e 75 0d 20 20 | 20 20 20 20 20 20 70 75 |eMenu. | pu|
|00001020| 74 20 69 74 65 6d 20 28 | 69 2a 33 29 20 6f 66 20 |t item (|i*3) of |
|00001030| 6d 49 6e 64 65 78 20 69 | 6e 74 6f 20 6d 41 63 74 |mIndex i|nto mAct|
|00001040| 69 6f 6e 0d 20 20 20 20 | 20 20 20 20 64 6f 20 6d |ion. | do m|
|00001050| 41 63 74 69 6f 6e 0d 20 | 20 20 20 20 20 65 6e 64 |Action. | end|
|00001060| 20 69 66 0d 20 20 20 20 | 65 6e 64 20 72 65 70 65 | if. |end repe|
|00001070| 61 74 0d 20 20 65 6e 64 | 20 69 66 0d 20 20 67 6f |at. end| if. go|
|00001080| 20 74 68 65 20 66 72 61 | 6d 65 0d 65 6e 64 20 52 | the fra|me.end R|
|00001090| 75 6e 4d 65 6e 75 0d 0d | 6f 6e 20 43 6c 6f 73 65 |unMenu..|on Close|
|000010a0| 4d 65 6e 75 0d 20 20 67 | 6c 6f 62 61 6c 20 4d 65 |Menu. g|lobal Me|
|000010b0| 6e 75 0d 20 20 4d 65 6e | 75 28 6d 43 6c 6f 73 65 |nu. Men|u(mClose|
|000010c0| 4d 65 6e 75 42 61 72 29 | 0d 20 20 75 70 64 61 74 |MenuBar)|. updat|
|000010d0| 65 53 74 61 67 65 0d 65 | 6e 64 20 43 6c 6f 73 65 |eStage.e|nd Close|
|000010e0| 4d 65 6e 75 0d 0d 2d 2d | 20 a5 a5 20 51 55 49 54 |Menu..--| .. QUIT|
|000010f0| 54 49 4e 47 0d 0d 6f 6e | 20 71 75 69 74 4d 61 63 |TING..on| quitMac|
|00001100| 54 75 74 6f 72 69 61 6c | 0d 20 20 4d 6f 6e 69 74 |Tutorial|. Monit|
|00001110| 6f 72 43 68 65 63 6b 0d | 20 20 52 65 73 74 6f 72 |orCheck.| Restor|
|00001120| 65 42 61 6c 6c 6f 6f 6e | 73 0d 20 20 72 65 73 74 |eBalloon|s. rest|
|00001130| 6f 72 65 43 6f 6e 74 72 | 6f 6c 53 74 72 69 70 0d |oreContr|olStrip.|
|00001140| 20 20 71 75 69 74 20 0d | 65 6e 64 20 71 75 69 74 | quit .|end quit|
|00001150| 4d 61 63 54 75 74 6f 72 | 69 61 6c 0d 0d 6f 6e 20 |MacTutor|ial..on |
|00001160| 43 68 65 63 6b 51 0d 20 | 20 2d 2d 20 c6 20 6c 6f |CheckQ. | -- . lo|
|00001170| 63 61 6c 69 7a 65 20 74 | 68 65 20 6b 65 79 62 6f |calize t|he keybo|
|00001180| 61 72 64 20 65 71 75 69 | 76 61 6c 65 6e 74 20 66 |ard equi|valent f|
|00001190| 6f 72 20 51 75 69 74 0d | 20 20 67 6c 6f 62 61 6c |or Quit.| global|
|000011a0| 20 4c 65 61 72 6e 69 6e | 67 42 61 73 69 63 73 46 | Learnin|gBasicsF|
|000011b0| 72 61 6d 65 0d 20 20 69 | 66 20 74 68 65 20 63 6f |rame. i|f the co|
|000011c0| 6d 6d 61 6e 64 44 6f 77 | 6e 20 41 4e 44 20 28 74 |mmandDow|n AND (t|
|000011d0| 68 65 20 6b 65 79 20 3d | 20 22 51 22 29 20 74 68 |he key =| "Q") th|
|000011e0| 65 6e 20 2d 2d 20 c6 0d | 20 20 20 20 69 66 20 6d |en -- ..| if m|
|000011f0| 61 72 6b 65 72 28 30 29 | 20 3c 20 6c 61 62 65 6c |arker(0)| < label|
|00001200| 28 22 43 68 6f 69 63 65 | 73 22 29 20 74 68 65 6e |("Choice|s") then|
|00001210| 20 0d 20 20 20 20 20 20 | 70 75 74 20 74 68 65 20 | . |put the |
|00001220| 66 72 61 6d 65 20 69 6e | 74 6f 20 4c 65 61 72 6e |frame in|to Learn|
|00001230| 69 6e 67 42 61 73 69 63 | 73 46 72 61 6d 65 0d 20 |ingBasic|sFrame. |
|00001240| 20 20 20 20 20 77 68 65 | 6e 20 74 69 6d 65 4f 75 | whe|n timeOu|
|00001250| 74 20 74 68 65 6e 20 6e | 6f 74 68 69 6e 67 20 20 |t then n|othing |
|00001260| 0d 20 20 20 20 20 20 67 | 6f 20 74 6f 20 22 43 68 |. g|o to "Ch|
|00001270| 6f 69 63 65 73 22 0d 20 | 20 20 20 65 6e 64 20 69 |oices". | end i|
|00001280| 66 0d 20 20 65 6c 73 65 | 20 69 66 20 74 68 65 20 |f. else| if the |
|00001290| 63 6f 6e 74 72 6f 6c 44 | 6f 77 6e 20 41 4e 44 20 |controlD|own AND |
|000012a0| 74 68 65 20 6f 70 74 69 | 6f 6e 44 6f 77 6e 20 41 |the opti|onDown A|
|000012b0| 4e 44 20 c2 0d 20 20 28 | 63 68 61 72 54 6f 4e 75 |ND .. (|charToNu|
|000012c0| 6d 28 74 68 65 20 6b 65 | 79 29 20 3d 20 39 36 29 |m(the ke|y) = 96)|
|000012d0| 20 74 68 65 6e 20 74 65 | 6c 6c 46 72 61 6d 65 4e | then te|llFrameN|
|000012e0| 75 6d 62 65 72 20 2d 2d | 20 a5 a5 20 54 65 73 74 |umber --| .. Test|
|000012f0| 69 6e 67 20 54 6f 6f 6c | 0d 65 6e 64 20 43 68 65 |ing Tool|.end Che|
|00001300| 63 6b 51 0d 0d 6f 6e 20 | 74 65 6c 6c 46 72 61 6d |ckQ..on |tellFram|
|00001310| 65 4e 75 6d 62 65 72 20 | 2d 2d 20 a5 a5 20 54 65 |eNumber |-- .. Te|
|00001320| 73 74 69 6e 67 20 54 6f | 6f 6c 0d 20 20 61 6c 65 |sting To|ol. ale|
|00001330| 72 74 20 22 43 75 72 72 | 65 6e 74 20 66 69 6c 65 |rt "Curr|ent file|
|00001340| 3a 22 20 26 26 20 74 68 | 65 20 6d 6f 76 69 65 20 |:" && th|e movie |
|00001350| 26 20 72 65 74 75 72 6e | 20 26 20 22 43 75 72 72 |& return| & "Curr|
|00001360| 65 6e 74 20 66 72 61 6d | 65 3a 22 20 26 26 20 28 |ent fram|e:" && (|
|00001370| 74 68 65 20 66 72 61 6d | 65 29 0d 65 6e 64 20 74 |the fram|e).end t|
|00001380| 65 6c 6c 46 72 61 6d 65 | 4e 75 6d 62 65 72 0d 0d |ellFrame|Number..|
|00001390| 2d 2d 20 a5 a5 20 53 54 | 41 52 54 20 55 50 20 41 |-- .. ST|ART UP A|
|000013a0| 4e 44 20 53 48 55 54 20 | 44 4f 57 4e 20 4d 4f 56 |ND SHUT |DOWN MOV|
|000013b0| 49 45 0d 0d 6f 6e 20 73 | 74 61 72 74 4d 6f 76 69 |IE..on s|tartMovi|
|000013c0| 65 0d 20 20 67 6c 6f 62 | 61 6c 20 73 6f 75 6e 64 |e. glob|al sound|
|000013d0| 56 6f 6c 0d 20 20 61 64 | 6a 75 73 74 50 61 6c 65 |Vol. ad|justPale|
|000013e0| 74 74 65 0d 20 20 73 65 | 74 20 74 68 65 20 65 78 |tte. se|t the ex|
|000013f0| 69 74 4c 6f 63 6b 20 74 | 6f 20 54 52 55 45 0d 20 |itLock t|o TRUE. |
|00001400| 20 4e 65 77 4d 65 6e 75 | 0d 20 20 70 75 74 20 74 | NewMenu|. put t|
|00001410| 68 65 20 76 6f 6c 75 6d | 65 20 6f 66 20 73 6f 75 |he volum|e of sou|
|00001420| 6e 64 20 32 20 69 6e 74 | 6f 20 73 6f 75 6e 64 56 |nd 2 int|o soundV|
|00001430| 6f 6c 0d 20 20 73 65 74 | 20 74 68 65 20 76 6f 6c |ol. set| the vol|
|00001440| 75 6d 65 20 6f 66 20 73 | 6f 75 6e 64 20 32 20 74 |ume of s|ound 2 t|
|00001450| 6f 20 31 33 30 0d 20 20 | 77 68 65 6e 20 4b 65 79 |o 130. |when Key|
|00001460| 44 6f 77 6e 20 74 68 65 | 6e 20 43 68 65 63 6b 51 |Down the|n CheckQ|
|00001470| 0d 20 20 2d 2d 20 73 65 | 74 20 75 70 20 6c 65 66 |. -- se|t up lef|
|00001480| 74 20 61 6e 64 20 72 69 | 67 68 74 20 61 72 72 6f |t and ri|ght arro|
|00001490| 77 0d 20 20 73 65 74 20 | 74 68 65 20 69 6d 6d 65 |w. set |the imme|
|000014a0| 64 69 61 74 65 20 6f 66 | 20 73 70 72 69 74 65 20 |diate of| sprite |
|000014b0| 31 39 20 74 6f 20 54 52 | 55 45 20 2d 2d 20 4c 65 |19 to TR|UE -- Le|
|000014c0| 66 74 20 41 72 72 6f 77 | 0d 20 20 73 65 74 20 74 |ft Arrow|. set t|
|000014d0| 68 65 20 69 6d 6d 65 64 | 69 61 74 65 20 6f 66 20 |he immed|iate of |
|000014e0| 73 70 72 69 74 65 20 32 | 30 20 74 6f 20 54 52 55 |sprite 2|0 to TRU|
|000014f0| 45 20 2d 2d 20 4c 65 74 | 20 4d 65 20 53 74 6f 70 |E -- Let| Me Stop|
|00001500| 20 42 75 74 74 6f 6e 0d | 20 20 73 65 74 20 74 68 | Button.| set th|
|00001510| 65 20 69 6d 6d 65 64 69 | 61 74 65 20 6f 66 20 73 |e immedi|ate of s|
|00001520| 70 72 69 74 65 20 32 31 | 20 74 6f 20 54 52 55 45 |prite 21| to TRUE|
|00001530| 20 2d 2d 20 47 75 69 64 | 65 20 4d 65 20 42 75 74 | -- Guid|e Me But|
|00001540| 74 6f 6e 0d 20 20 73 65 | 74 20 74 68 65 20 69 6d |ton. se|t the im|
|00001550| 6d 65 64 69 61 74 65 20 | 6f 66 20 73 70 72 69 74 |mediate |of sprit|
|00001560| 65 20 32 32 20 74 6f 20 | 54 52 55 45 20 2d 2d 20 |e 22 to |TRUE -- |
|00001570| 52 69 67 68 74 20 41 72 | 72 6f 77 0d 65 6e 64 20 |Right Ar|row.end |
|00001580| 73 74 61 72 74 4d 6f 76 | 69 65 0d 0d 6f 6e 20 61 |startMov|ie..on a|
|00001590| 64 6a 75 73 74 50 61 6c | 65 74 74 65 0d 20 20 69 |djustPal|ette. i|
|000015a0| 66 20 69 73 47 72 61 79 | 44 69 73 70 6c 61 79 28 |f isGray|Display(|
|000015b0| 29 20 74 68 65 6e 20 70 | 75 70 70 65 74 50 61 6c |) then p|uppetPal|
|000015c0| 65 74 74 65 20 22 67 72 | 61 79 73 34 22 2c 32 30 |ette "gr|ays4",20|
|000015d0| 0d 65 6e 64 20 61 64 6a | 75 73 74 50 61 6c 65 74 |.end adj|ustPalet|
|000015e0| 74 65 0d 0d 6f 6e 20 69 | 73 47 72 61 79 44 69 73 |te..on i|sGrayDis|
|000015f0| 70 6c 61 79 0d 20 20 67 | 6c 6f 62 61 6c 20 6d 79 |play. g|lobal my|
|00001600| 44 69 73 70 0d 20 20 69 | 66 20 6d 79 44 69 73 70 |Disp. i|f myDisp|
|00001610| 20 3c 3e 20 30 20 74 68 | 65 6e 20 0d 20 20 20 20 | <> 0 th|en . |
|00001620| 69 66 20 6d 79 44 69 73 | 70 28 6d 47 65 74 44 65 |if myDis|p(mGetDe|
|00001630| 70 74 68 29 20 3d 20 34 | 20 74 68 65 6e 0d 20 20 |pth) = 4| then. |
|00001640| 20 20 20 20 72 65 74 75 | 72 6e 20 54 52 55 45 0d | retu|rn TRUE.|
|00001650| 20 20 20 20 65 6c 73 65 | 20 72 65 74 75 72 6e 20 | else| return |
|00001660| 46 41 4c 53 45 0d 20 20 | 65 6c 73 65 20 72 65 74 |FALSE. |else ret|
|00001670| 75 72 6e 20 46 41 4c 53 | 45 0d 65 6e 64 20 69 73 |urn FALS|E.end is|
|00001680| 47 72 61 79 44 69 73 70 | 6c 61 79 0d 0d 6f 6e 20 |GrayDisp|lay..on |
|00001690| 73 74 6f 70 4d 6f 76 69 | 65 0d 20 20 67 6c 6f 62 |stopMovi|e. glob|
|000016a0| 61 6c 20 4d 65 6e 75 0d | 20 20 69 66 20 6f 62 6a |al Menu.| if obj|
|000016b0| 65 63 74 70 28 4d 65 6e | 75 29 20 74 68 65 6e 20 |ectp(Men|u) then |
|000016c0| 4d 65 6e 75 28 6d 44 69 | 73 70 6f 73 65 29 0d 65 |Menu(mDi|spose).e|
|000016d0| 6e 64 20 73 74 6f 70 4d | 6f 76 69 65 0d 0d 6f 6e |nd stopM|ovie..on|
|000016e0| 20 4d 6f 6e 69 74 6f 72 | 43 68 65 63 6b 20 20 0d | Monitor|Check .|
|000016f0| 20 20 67 6c 6f 62 61 6c | 20 6d 79 44 69 73 70 0d | global| myDisp.|
|00001700| 20 20 69 66 20 6f 62 6a | 65 63 74 70 28 6d 79 44 | if obj|ectp(myD|
|00001710| 69 73 70 29 20 74 68 65 | 6e 0d 20 20 20 20 6d 79 |isp) the|n. my|
|00001720| 44 69 73 70 28 6d 52 65 | 73 74 6f 72 65 29 0d 20 |Disp(mRe|store). |
|00001730| 20 20 20 75 70 64 61 74 | 65 73 74 61 67 65 0d 20 | updat|estage. |
|00001740| 20 20 20 6d 79 44 69 73 | 70 28 6d 44 69 73 70 6f | myDis|p(mDispo|
|00001750| 73 65 29 0d 20 20 65 6e | 64 20 69 66 0d 65 6e 64 |se). en|d if.end|
|00001760| 20 4d 6f 6e 69 74 6f 72 | 43 68 65 63 6b 0d 0d 6f | Monitor|Check..o|
|00001770| 6e 20 52 65 73 74 6f 72 | 65 42 61 6c 6c 6f 6f 6e |n Restor|eBalloon|
|00001780| 73 0d 20 20 67 6c 6f 62 | 61 6c 20 4f 72 69 67 42 |s. glob|al OrigB|
|00001790| 61 6c 6c 6f 6f 6e 53 74 | 61 74 65 2c 42 61 6c 6c |alloonSt|ate,Ball|
|000017a0| 6f 6f 6e 0d 20 20 6f 70 | 65 6e 58 4c 69 62 20 22 |oon. op|enXLib "|
|000017b0| 53 54 42 61 6c 6c 6f 6f | 6e 54 6f 67 67 6c 65 22 |STBalloo|nToggle"|
|000017c0| 20 0d 20 20 73 65 74 20 | 42 61 6c 6c 6f 6f 6e 20 | . set |Balloon |
|000017d0| 3d 20 53 54 42 61 6c 6c | 6f 6f 6e 54 6f 67 67 6c |= STBall|oonToggl|
|000017e0| 65 28 6d 4e 65 77 29 0d | 20 20 69 66 20 4f 72 69 |e(mNew).| if Ori|
|000017f0| 67 42 61 6c 6c 6f 6f 6e | 53 74 61 74 65 20 3d 20 |gBalloon|State = |
|00001800| 22 74 72 75 65 22 20 74 | 68 65 6e 0d 20 20 20 20 |"true" t|hen. |
|00001810| 42 61 6c 6c 6f 6f 6e 28 | 6d 54 75 72 6e 4f 6e 29 |Balloon(|mTurnOn)|
|00001820| 0d 20 20 65 6c 73 65 0d | 20 20 20 20 42 61 6c 6c |. else.| Ball|
|00001830| 6f 6f 6e 28 6d 54 75 72 | 6e 4f 66 66 29 0d 20 20 |oon(mTur|nOff). |
|00001840| 65 6e 64 20 69 66 0d 20 | 20 42 61 6c 6c 6f 6f 6e |end if. | Balloon|
|00001850| 28 6d 44 69 73 70 6f 73 | 65 29 0d 65 6e 64 20 52 |(mDispos|e).end R|
|00001860| 65 73 74 6f 72 65 42 61 | 6c 6c 6f 6f 6e 73 0d 0d |estoreBa|lloons..|
|00001870| 6f 6e 20 72 65 73 74 6f | 72 65 43 6f 6e 74 72 6f |on resto|reContro|
|00001880| 6c 53 74 72 69 70 0d 20 | 20 67 6c 6f 62 61 6c 20 |lStrip. | global |
|00001890| 6f 72 69 67 43 6f 6e 74 | 72 6f 6c 53 74 61 74 65 |origCont|rolState|
|000018a0| 0d 20 20 69 66 20 6f 72 | 69 67 43 6f 6e 74 72 6f |. if or|igContro|
|000018b0| 6c 53 74 61 74 65 20 74 | 68 65 6e 20 53 74 61 74 |lState t|hen Stat|
|000018c0| 75 73 42 61 72 28 22 73 | 68 6f 77 22 29 0d 65 6e |usBar("s|how").en|
|000018d0| 64 20 72 65 73 74 6f 72 | 65 43 6f 6e 74 72 6f 6c |d restor|eControl|
|000018e0| 53 74 72 69 70 0d 0d 2d | 2d 20 a5 a5 20 4d 4f 55 |Strip..-|- .. MOU|
|000018f0| 53 45 20 50 4f 53 49 54 | 49 4f 4e 20 54 52 41 43 |SE POSIT|ION TRAC|
|00001900| 4b 49 4e 47 0d 2d 2d 20 | 75 73 65 64 20 74 6f 20 |KING.-- |used to |
|00001910| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 65 20 75 73 |make sur|e the us|
|00001920| 65 72 20 68 61 73 20 61 | 63 74 75 61 6c 6c 79 20 |er has a|ctually |
|00001930| 6d 6f 76 65 64 20 74 68 | 65 20 6d 6f 75 73 65 0d |moved th|e mouse.|
|00001940| 0d 6f 6e 20 69 6e 69 74 | 4d 6f 75 73 65 50 6f 73 |.on init|MousePos|
|00001950| 69 74 69 6f 6e 0d 20 20 | 67 6c 6f 62 61 6c 20 74 |ition. |global t|
|00001960| 68 65 4d 6f 75 73 65 4c | 6f 63 0d 20 20 70 75 74 |heMouseL|oc. put|
|00001970| 20 74 68 65 20 6d 6f 75 | 73 65 48 20 26 26 20 74 | the mou|seH && t|
|00001980| 68 65 20 6d 6f 75 73 65 | 56 20 69 6e 74 6f 20 74 |he mouse|V into t|
|00001990| 68 65 4d 6f 75 73 65 4c | 6f 63 0d 65 6e 64 20 69 |heMouseL|oc.end i|
|000019a0| 6e 69 74 4d 6f 75 73 65 | 50 6f 73 69 74 69 6f 6e |nitMouse|Position|
|000019b0| 0d 0d 6f 6e 20 74 68 65 | 4d 6f 75 73 65 4d 6f 76 |..on the|MouseMov|
|000019c0| 65 64 0d 20 20 67 6c 6f | 62 61 6c 20 74 68 65 4d |ed. glo|bal theM|
|000019d0| 6f 75 73 65 4c 6f 63 0d | 20 20 72 65 74 75 72 6e |ouseLoc.| return|
|000019e0| 20 28 28 74 68 65 20 6d | 6f 75 73 65 48 20 26 26 | ((the m|ouseH &&|
|000019f0| 20 74 68 65 20 6d 6f 75 | 73 65 56 29 20 3c 3e 20 | the mou|seV) <> |
|00001a00| 74 68 65 4d 6f 75 73 65 | 4c 6f 63 29 0d 65 6e 64 |theMouse|Loc).end|
|00001a10| 20 74 68 65 4d 6f 75 73 | 65 4d 6f 76 65 64 1a 47 | theMous|eMoved.G|
|00001a20| 46 58 20 2d 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |FX - App|le Compu|
|00001a30| 74 65 72 2c 20 49 6e 63 | 2e 22 45 6c 69 20 43 6f |ter, Inc|."Eli Co|
|00001a40| 63 68 72 61 6e 20 2d 20 | 41 70 70 6c 65 20 43 6f |chran - |Apple Co|
|00001a50| 6d 70 75 74 65 72 2c 20 | 49 6e 63 2e 00 01 |mputer, |Inc... |
+--------+-------------------------+-------------------------+--------+--------+